<?php slot("ms","banner.ls")?>
<h1><?php echo __('Lista de Banners')?></h1>
<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Name</th>
      <th>Status</th>
      <th>Section</th>
      <th>Sort</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($banners as $banner): ?>
    <tr>
      <td><a href="<?php echo url_for('banner/show?id='.$banner->getId()) ?>"><?php echo $banner->getId() ?></a></td>
      <td><?php echo $banner->getName() ?></td>
      <td><?php echo $banner->getStatus() ?></td>
      <td><?php echo $banner->getSectionId() ?></td>
      <td><?php echo $banner->getSort() ?></td>
      <td><?php echo $banner->getCreatedAt() ?></td>
      <td><?php echo $banner->getUpdatedAt() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('banner/new') ?>">New</a>
